<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <title>首页</title>
        <style type="text/css">
            body {
                text-align: center
            }
        </style>
        <link rel="stylesheet" href="../../layui/css/layui.css">
        <script src="../../layui/layui.js"></script>
    </head>
    <body>
        <div style="margin-top: 250px">
            <a href="/book/allBook" class="layui-btn layui-btn-lg layui-btn-radius layui-btn-normal">点击查看详情</a>
        </div>

        <script>
            //一般直接写在一个js文件中
            layui.use(['layer', 'form'], function () {
                var layer = layui.layer
                    , form = layui.form;

                layer.msg('ssm整合thymeleaf');
            });
        </script>
    </body>
</html>